package com.fish.service.account;

import java.util.List;

import com.fish.account.po.Account;
import com.fish.account.po.Balance;
import com.fish.common.constant.QueryPage;
import com.fish.passport.po.PassCode;

public interface AccountService {
	/**
	 * 根据主键查询
	 * 
	 * @update zhangzhenhua 2010-9-20
	 */
	Account queryAccountByPrimaryKey(Account account);

	/**
	 * 添加
	 * 
	 * @update zhangzhenhua 2010-9-20
	 */
	void insertAccount(Account account);

	/**
	 * 添加
	 * 
	 * @update zhangzhenhua 2010-9-20
	 */
	void updateAccount(Account account);
	
	/**
	 * 模糊查询
	 * 
	 * @update zhangzhenhua 2010-9-20
	 */
	List<Account> queryAccountByObject(Account account);
	
	/**
	 * 根据BANKID得到最后的余额balance
	 * 
	 * @update hz 2010-9-20
	 */
	Double queryLastBalanceByBankId(Account account);
	
	public Long queryAccountCountByObject(Account account);
	
	public List<Account> queryAccountByObject(Account account, QueryPage queryPage);

	Balance queryBalanceByUser(String userId);
}
